// import { createRouter, createWebHistory } from 'vue-router';
import LayOut from '@/layout/index.vue';
const routes = [
	{
		path: '/',
		name: 'layout',
		component: LayOut,
		// redirect: '/',
		children: [
			{
				path: '/',
				name: 'home',
				component: () => import('@/views/home/index.vue'),
			},
			// {
			// 	path: '/about',
			// 	name: 'about',
			// 	component: () => import('@/views/about/index.vue'),
			// },
		],
	},
];

const router = createRouter({
	history: createWebHistory(),
	routes: routes,
});

export default router;
